//
//  ViewController.m
//  Emoji_keyboard
//
//  Created by raymond on 16/4/15.
//  Copyright © 2016年 raymond. All rights reserved.
//

#import "ViewController.h"
#import "JXEmojiView.h"

@interface ViewController ()

@property (weak, nonatomic) IBOutlet UITextField *textField;


@property (nonatomic, strong) JXEmojiView *emojiView;

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.textField.inputView = self.emojiView;
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (void)viewDidLayoutSubviews {
    [super viewDidLayoutSubviews];
//    self.emojiView.bounds = CGRectMake(0, 0, [UIScreen mainScreen].bounds.size.width, 300);
}

- (JXEmojiView *)emojiView {
    if (_emojiView == nil) {
        _emojiView = [[JXEmojiView alloc] init];
//        [self.view addSubview:_emojiView];
    }
    return _emojiView;
}

@end
